package com.corpgovernment.organization.entity.db;

import com.corpgovernment.common.annotation.OperateLogFieldDesc;
import com.corpgovernment.common.handler.Sm4TypeHandler;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
import org.apache.ibatis.type.TypeHandler;
import tk.mybatis.mapper.annotation.ColumnType;

/**
 * @author xbqi
 * @date 2023/11/1
 */
@Data
@Table(name = "mb_redemption_code")
public class MbRedemptionCode {

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 兑换码
     */
    @Column(name = "redemption_code")
    private String redemptionCode;

    /**
     * 兑换码链接
     */
    @Column(name = "redemption_code_link")
    private String redemptionCodeLink;

    /**
     * 员工ID
     */
    private String uid;

    /**
     * 员工姓名
     */
    @ColumnType(typeHandler = Sm4TypeHandler.class)
    private String name;

}
